window.addEventListener('pageshow', function() {
    // 获取会员中心传递过来的localStorage
    //arr2=["1", "123456", "123456", "andy", "123456%40qq.com", "123456", ""]
    //arr= ["uid", "u_password", "u_sure_password", "uname", "uemail", "uphone", "unote"]
    //console.log(window.localStorage.getItem('uid'));
    //赋值
    var uid = document.querySelector('.uid');
    var uname = document.querySelector('.uname');
    var uemail = document.querySelector('.uemail');
    var uphone = document.querySelector('.uphone');
    //给账号赋值 赋值后不可变 disable
    uid.value = window.localStorage.getItem('uid');
    uid.disabled = true;
    uid.style.color = '#999';

    //给姓名赋值
    uname.value = window.localStorage.getItem('uname');

    //给邮箱赋值
    var email = window.localStorage.getItem('uemail');
    if (email == '') {
        uemail.placeholder = '未赋值';
    } else {
        for (var i = 0; i < email.length; i++) {
            if (email[i] == '%') {
                email[i] = '&%40';
            }
        }
        uemail.value = email;
    }

    //给电话号码赋值
    uphone.value = window.localStorage.getItem('uphone');



})